<?php

namespace app\crm\model;

use app\crm\model\ShopPerson;

use app\admin\model\Common;
use app\crm\model\ShopPersonAchievementModel;
use think\facade\Db;


/**

 * 订单商品模型

 * @package app\shop\model

 * @author LIU

 * @create 2021-10-01

 */

class ShopOrderGoods extends Common

{
    /**

     * 表名

     * @var string

     */

    protected $name = 'shop_order_goods';

    protected $defaultSoftDelete = 0;

    //获取护理师
    public function NurseOne()
    {
        return $this->hasOne(ShopPerson::class,'id','nurse_one');
    }
    public function NurseTwo()
    {
        return $this->hasOne(ShopPerson::class,'id','nurse_two');
    }
}
